package io.kiki.stack.netty.config;

import io.netty.channel.ChannelHandler;

import java.util.List;

/**
 * Leave it to external expansion and
 * support the addition of extended handler in the channel pipeline.
 */
public interface ExtendedChannelHandlerList {

    /**
     * Netty ChannelHandlers to be added before 's built-in Handler.
     *
     * @return Netty ChannelHandler list
     */
    List<ChannelHandler> frontChannelHandlers();

    /**
     * Netty ChannelHandlers to be added after 's built-in Handler.
     *
     * @return Netty ChannelHandler list
     */
    List<ChannelHandler> backChannelHandlers();
}
